package com.yunxi.activiti.service;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.databind.node.ObjectNode;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Map;

/**
 * Created by Administrator on 2019/5/7.
 */
public interface ActivitiModelDubboService {
    Map createModel() throws UnsupportedEncodingException;
    JSONObject getNodeModel(String modelId);

    void saveModel(String modelId, String name, String json_xml, String svg_xml, String description);

    String createNewModel() throws UnsupportedEncodingException;

    Object modelList();

    String deploy(String modelId) throws IOException;

    Object startActProcess(String keyName);

    Object runAct(String processInstanceId);

}
